<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<div id="app">
			<span v-if="isUser">
				<label for="userName">用户账号</label>	
				<input type="text" name="" id="userName" value="" placeholder="用户账号"/>
			</span>
			<span v-else>
				<label for="email">用户邮箱</label>
				<input type="text" name="" id="email" value="" placeholder="用户邮箱"/>
			</span>
			<button type="button" @click="isUser=!isUser">切换类型</button>
		</div>
		<script src="../js/vue.js"></script>
		<script>
			const app = new Vue({
				el: '#app',
				data: {
					isUser: true
				}
			})
		</script>
	</body>
</html>
